<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>函数优化</title>
    <script>

        function add(a = 80, b = 30) {
            console.log(a + "+" + b + "=" + (a + b));
        }


        let fun1 = function (a,b){
            console.log(a + "-" + b + "=" + (a - b));
        }


        let fun2 = (a,heima60)=>{
            console.log(a + "+" + heima60 + "=" + (a + heima60));
        };



        const person = {
            name:"jack",
            age:21,
            language: ['java','js','css']
        }

        function hello(person) {
            console.log("hello," + person.name)
        }

        let hi= ({name,age})=>console.log("hello," + name);


        hello(person);
        hi(person)

    </script>
</head>
<body>

</body>
</html>